import { BaseProvider } from "./BaseProvider";

export default class ClassProvider extends BaseProvider {
    private _clazzKey: string = null;

    constructor(clazz) {
        super();
        this._clazzKey = clazz
    }

    public getEntity(...args: any[]) {
        let entity = this._injector.instantiateOf(this._clazzKey, ...args);
        return entity;
    }
}